home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
apps
/
356
/
applic
/
narrwtxt.doc
< prev
next >
Wrap
Text File
|
1989-02-16
|
3KB
|
62 lines
DOCs for NARRWTXT.PRG
This program is designed to make it easier to read long text files
such as BBS 'magazines', newsletters, long documentation files,
etc. The 80 column width of a monitor is much too wide to read
comfortably. The monitor display is about 3.5 times as wide as a
newspaper column, which was designed for ease of reading.
Granted, the monitor is further away than a newspaper being read;
but it's not 3.5 times as far away!
To use the program simply be sure the .RSC file and the .PRG file
are in the same directory and double click on the program. You
will be asked for a file name and then there will be a pause while
the program computes the starting point for all possible lines in
the new format. A help screen shows what keys (including Help
itself) are active. You can change between narrow and wide
formats at will to read tabulated data and text that was carefully
formatted. When in narrow mode, the tab character is replaced by
one space. In wide mode, you get whatever the desktop 'Show' file
would have given. You can send the 'page' on the screen to a
printer. If you want consecutive pages, you may want to adjust
the text on the screen first to avoid getting two copies of the
overlap line. This line was the bottom line of the first screen
and the top line of the second screen.
You can also type in a number of up to 4 digits and that line will
be shown at the top of the screen.
Searching
If you press the 's' key you will be asked for a search key and if
a find is made the text found will be shown highlighted on line 3.
Pressing 'r' continues the search from line 4 (as shown on the
monitor). You can conveniently skip articles in a newsletter by
searching for something such as several hyphens, which are often
used as major headers in files such as this. If you want to skip
a section, press any unassigned key to skip all the hyphens on the
page found first, and then 'r'.
Customizing the width
The new format will give lines with a maximum width of 50
characters. If you want to change this, use a sector editor and
look at address $126 (approximately) in NARRWTXT.PRG file. You
will see the value $AAAAAA32. The low order byte contains $32,
which is decimal 50, the 50 character line width mentioned
earlier. Use the sector editor to change this value to the line
width you want. Let's say you want 75 characters per line. To
convert a decimal number less than 256 to hex, divide by 16. The
dividend will be the upper hex digit and the remainder will be the
lower hex digit. Now 75 divided by 16 gives a dividend of 4 and a
remainder of 11. And the symbol for 11 in hex is 'B'. So change
the value to $AAAAAA4B. The 'A's were put there simply to make
the spot easy to find.
Further Distribution
Permission is granted to pass this program along as long as _all_
the files in this .ARC are included and no changes are made to
them.